import { axios } from '@/utils/request'

/**
 * 查询套餐升档（外呼）订单
 *
 * @author herrywong
 * @date 2022-02-13 12:00:13
 */
export function upgradingBusinessOrderPage (parameter) {
  return axios({
    url: '/upgradingBusinessOrder/page',
    method: 'get',
    params: parameter
  })
}

/**
 * 套餐升档（外呼）订单列表
 *
 * @author herrywong
 * @date 2022-02-13 12:00:13
 */
export function upgradingBusinessOrderList (parameter) {
  return axios({
    url: '/upgradingBusinessOrder/list',
    method: 'get',
    params: parameter
  })
}

/**
 * 添加套餐升档（外呼）订单
 *
 * @author herrywong
 * @date 2022-02-13 12:00:13
 */
export function upgradingBusinessOrderAdd (parameter) {
  return axios({
    url: '/upgradingBusinessOrder/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑套餐升档（外呼）订单
 *
 * @author herrywong
 * @date 2022-02-13 12:00:13
 */
export function upgradingBusinessOrderEdit (parameter) {
  return axios({
    url: '/upgradingBusinessOrder/edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除套餐升档（外呼）订单
 *
 * @author herrywong
 * @date 2022-02-13 12:00:13
 */
export function upgradingBusinessOrderDelete (parameter) {
  return axios({
    url: '/upgradingBusinessOrder/delete',
    method: 'post',
    data: parameter
  })
}

/**
 * 导出套餐升档（外呼）订单
 *
 * @author herrywong
 * @date 2022-02-13 12:00:13
 */
export function upgradingBusinessOrderExport (parameter) {
  return axios({
    url: '/upgradingBusinessOrder/export',
    method: 'get',
    params: parameter,
    responseType: 'blob'
  })
}
